home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: Shape Geometry
- Sent: 5/8/96 1:05 PM
- Received: 5/8/96 1:11 PM
- From: Henri Lamiraux, lamiraux@apple.com
- Reply-To: ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- >We have found a very significant increase in performace if we tell the
- >OpenDoc shapes to loose their geometry before performing operations on them
- >(as done by the following code example)
- >
- > fTextPunchedOutShape = ::FW_NewODShape(ev);
- > fTextPunchedOutShape->SetGeometryMode(ev,kODLoseGeometry);
- >
- >Is there (or should there be) a way to tell the framework to always default
- >new shapes (via FW_NewODShape...) to loose their geometry?
- >
- >Karl Jepsen
-
- We don't have a specific API to do that in ODF. Using the OpenDoc API
- directly works. Note that it is dangerous to use kODLoseGeometry on all
- ODShapes. Persistent shapes like the Frame shape or the used shape should
- not lose their geometry. Using kODLoseGeometry on clip shape is fine and
- I use it now in ODF Release 1. I could add a parameter to FW_NewODShape
- but it should be by default kODDefaultGeometry (I don't remember the
- exact constant).
-
- .......................................................................
- Henri Lamiraux lamiraux@apple.com
- Apple Computer, Inc. OpenDoc(tm) Development Framework
- .......................................................................
-
-